package generator;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class YogaPrivaterequestExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public YogaPrivaterequestExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andPqidIsNull() {
            addCriterion("pqid is null");
            return (Criteria) this;
        }

        public Criteria andPqidIsNotNull() {
            addCriterion("pqid is not null");
            return (Criteria) this;
        }

        public Criteria andPqidEqualTo(Integer value) {
            addCriterion("pqid =", value, "pqid");
            return (Criteria) this;
        }

        public Criteria andPqidNotEqualTo(Integer value) {
            addCriterion("pqid <>", value, "pqid");
            return (Criteria) this;
        }

        public Criteria andPqidGreaterThan(Integer value) {
            addCriterion("pqid >", value, "pqid");
            return (Criteria) this;
        }

        public Criteria andPqidGreaterThanOrEqualTo(Integer value) {
            addCriterion("pqid >=", value, "pqid");
            return (Criteria) this;
        }

        public Criteria andPqidLessThan(Integer value) {
            addCriterion("pqid <", value, "pqid");
            return (Criteria) this;
        }

        public Criteria andPqidLessThanOrEqualTo(Integer value) {
            addCriterion("pqid <=", value, "pqid");
            return (Criteria) this;
        }

        public Criteria andPqidIn(List<Integer> values) {
            addCriterion("pqid in", values, "pqid");
            return (Criteria) this;
        }

        public Criteria andPqidNotIn(List<Integer> values) {
            addCriterion("pqid not in", values, "pqid");
            return (Criteria) this;
        }

        public Criteria andPqidBetween(Integer value1, Integer value2) {
            addCriterion("pqid between", value1, value2, "pqid");
            return (Criteria) this;
        }

        public Criteria andPqidNotBetween(Integer value1, Integer value2) {
            addCriterion("pqid not between", value1, value2, "pqid");
            return (Criteria) this;
        }

        public Criteria andUidIsNull() {
            addCriterion("`uid` is null");
            return (Criteria) this;
        }

        public Criteria andUidIsNotNull() {
            addCriterion("`uid` is not null");
            return (Criteria) this;
        }

        public Criteria andUidEqualTo(String value) {
            addCriterion("`uid` =", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotEqualTo(String value) {
            addCriterion("`uid` <>", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThan(String value) {
            addCriterion("`uid` >", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThanOrEqualTo(String value) {
            addCriterion("`uid` >=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThan(String value) {
            addCriterion("`uid` <", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThanOrEqualTo(String value) {
            addCriterion("`uid` <=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLike(String value) {
            addCriterion("`uid` like", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotLike(String value) {
            addCriterion("`uid` not like", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidIn(List<String> values) {
            addCriterion("`uid` in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotIn(List<String> values) {
            addCriterion("`uid` not in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidBetween(String value1, String value2) {
            addCriterion("`uid` between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotBetween(String value1, String value2) {
            addCriterion("`uid` not between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andCoachuidIsNull() {
            addCriterion("coachuid is null");
            return (Criteria) this;
        }

        public Criteria andCoachuidIsNotNull() {
            addCriterion("coachuid is not null");
            return (Criteria) this;
        }

        public Criteria andCoachuidEqualTo(String value) {
            addCriterion("coachuid =", value, "coachuid");
            return (Criteria) this;
        }

        public Criteria andCoachuidNotEqualTo(String value) {
            addCriterion("coachuid <>", value, "coachuid");
            return (Criteria) this;
        }

        public Criteria andCoachuidGreaterThan(String value) {
            addCriterion("coachuid >", value, "coachuid");
            return (Criteria) this;
        }

        public Criteria andCoachuidGreaterThanOrEqualTo(String value) {
            addCriterion("coachuid >=", value, "coachuid");
            return (Criteria) this;
        }

        public Criteria andCoachuidLessThan(String value) {
            addCriterion("coachuid <", value, "coachuid");
            return (Criteria) this;
        }

        public Criteria andCoachuidLessThanOrEqualTo(String value) {
            addCriterion("coachuid <=", value, "coachuid");
            return (Criteria) this;
        }

        public Criteria andCoachuidLike(String value) {
            addCriterion("coachuid like", value, "coachuid");
            return (Criteria) this;
        }

        public Criteria andCoachuidNotLike(String value) {
            addCriterion("coachuid not like", value, "coachuid");
            return (Criteria) this;
        }

        public Criteria andCoachuidIn(List<String> values) {
            addCriterion("coachuid in", values, "coachuid");
            return (Criteria) this;
        }

        public Criteria andCoachuidNotIn(List<String> values) {
            addCriterion("coachuid not in", values, "coachuid");
            return (Criteria) this;
        }

        public Criteria andCoachuidBetween(String value1, String value2) {
            addCriterion("coachuid between", value1, value2, "coachuid");
            return (Criteria) this;
        }

        public Criteria andCoachuidNotBetween(String value1, String value2) {
            addCriterion("coachuid not between", value1, value2, "coachuid");
            return (Criteria) this;
        }

        public Criteria andRequesttimeIsNull() {
            addCriterion("requesttime is null");
            return (Criteria) this;
        }

        public Criteria andRequesttimeIsNotNull() {
            addCriterion("requesttime is not null");
            return (Criteria) this;
        }

        public Criteria andRequesttimeEqualTo(Date value) {
            addCriterionForJDBCDate("requesttime =", value, "requesttime");
            return (Criteria) this;
        }

        public Criteria andRequesttimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("requesttime <>", value, "requesttime");
            return (Criteria) this;
        }

        public Criteria andRequesttimeGreaterThan(Date value) {
            addCriterionForJDBCDate("requesttime >", value, "requesttime");
            return (Criteria) this;
        }

        public Criteria andRequesttimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("requesttime >=", value, "requesttime");
            return (Criteria) this;
        }

        public Criteria andRequesttimeLessThan(Date value) {
            addCriterionForJDBCDate("requesttime <", value, "requesttime");
            return (Criteria) this;
        }

        public Criteria andRequesttimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("requesttime <=", value, "requesttime");
            return (Criteria) this;
        }

        public Criteria andRequesttimeIn(List<Date> values) {
            addCriterionForJDBCDate("requesttime in", values, "requesttime");
            return (Criteria) this;
        }

        public Criteria andRequesttimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("requesttime not in", values, "requesttime");
            return (Criteria) this;
        }

        public Criteria andRequesttimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("requesttime between", value1, value2, "requesttime");
            return (Criteria) this;
        }

        public Criteria andRequesttimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("requesttime not between", value1, value2, "requesttime");
            return (Criteria) this;
        }

        public Criteria andPstatusIsNull() {
            addCriterion("pstatus is null");
            return (Criteria) this;
        }

        public Criteria andPstatusIsNotNull() {
            addCriterion("pstatus is not null");
            return (Criteria) this;
        }

        public Criteria andPstatusEqualTo(String value) {
            addCriterion("pstatus =", value, "pstatus");
            return (Criteria) this;
        }

        public Criteria andPstatusNotEqualTo(String value) {
            addCriterion("pstatus <>", value, "pstatus");
            return (Criteria) this;
        }

        public Criteria andPstatusGreaterThan(String value) {
            addCriterion("pstatus >", value, "pstatus");
            return (Criteria) this;
        }

        public Criteria andPstatusGreaterThanOrEqualTo(String value) {
            addCriterion("pstatus >=", value, "pstatus");
            return (Criteria) this;
        }

        public Criteria andPstatusLessThan(String value) {
            addCriterion("pstatus <", value, "pstatus");
            return (Criteria) this;
        }

        public Criteria andPstatusLessThanOrEqualTo(String value) {
            addCriterion("pstatus <=", value, "pstatus");
            return (Criteria) this;
        }

        public Criteria andPstatusLike(String value) {
            addCriterion("pstatus like", value, "pstatus");
            return (Criteria) this;
        }

        public Criteria andPstatusNotLike(String value) {
            addCriterion("pstatus not like", value, "pstatus");
            return (Criteria) this;
        }

        public Criteria andPstatusIn(List<String> values) {
            addCriterion("pstatus in", values, "pstatus");
            return (Criteria) this;
        }

        public Criteria andPstatusNotIn(List<String> values) {
            addCriterion("pstatus not in", values, "pstatus");
            return (Criteria) this;
        }

        public Criteria andPstatusBetween(String value1, String value2) {
            addCriterion("pstatus between", value1, value2, "pstatus");
            return (Criteria) this;
        }

        public Criteria andPstatusNotBetween(String value1, String value2) {
            addCriterion("pstatus not between", value1, value2, "pstatus");
            return (Criteria) this;
        }

        public Criteria andClassmoneyIsNull() {
            addCriterion("classmoney is null");
            return (Criteria) this;
        }

        public Criteria andClassmoneyIsNotNull() {
            addCriterion("classmoney is not null");
            return (Criteria) this;
        }

        public Criteria andClassmoneyEqualTo(Integer value) {
            addCriterion("classmoney =", value, "classmoney");
            return (Criteria) this;
        }

        public Criteria andClassmoneyNotEqualTo(Integer value) {
            addCriterion("classmoney <>", value, "classmoney");
            return (Criteria) this;
        }

        public Criteria andClassmoneyGreaterThan(Integer value) {
            addCriterion("classmoney >", value, "classmoney");
            return (Criteria) this;
        }

        public Criteria andClassmoneyGreaterThanOrEqualTo(Integer value) {
            addCriterion("classmoney >=", value, "classmoney");
            return (Criteria) this;
        }

        public Criteria andClassmoneyLessThan(Integer value) {
            addCriterion("classmoney <", value, "classmoney");
            return (Criteria) this;
        }

        public Criteria andClassmoneyLessThanOrEqualTo(Integer value) {
            addCriterion("classmoney <=", value, "classmoney");
            return (Criteria) this;
        }

        public Criteria andClassmoneyIn(List<Integer> values) {
            addCriterion("classmoney in", values, "classmoney");
            return (Criteria) this;
        }

        public Criteria andClassmoneyNotIn(List<Integer> values) {
            addCriterion("classmoney not in", values, "classmoney");
            return (Criteria) this;
        }

        public Criteria andClassmoneyBetween(Integer value1, Integer value2) {
            addCriterion("classmoney between", value1, value2, "classmoney");
            return (Criteria) this;
        }

        public Criteria andClassmoneyNotBetween(Integer value1, Integer value2) {
            addCriterion("classmoney not between", value1, value2, "classmoney");
            return (Criteria) this;
        }

        public Criteria andCpidIsNull() {
            addCriterion("cpid is null");
            return (Criteria) this;
        }

        public Criteria andCpidIsNotNull() {
            addCriterion("cpid is not null");
            return (Criteria) this;
        }

        public Criteria andCpidEqualTo(Integer value) {
            addCriterion("cpid =", value, "cpid");
            return (Criteria) this;
        }

        public Criteria andCpidNotEqualTo(Integer value) {
            addCriterion("cpid <>", value, "cpid");
            return (Criteria) this;
        }

        public Criteria andCpidGreaterThan(Integer value) {
            addCriterion("cpid >", value, "cpid");
            return (Criteria) this;
        }

        public Criteria andCpidGreaterThanOrEqualTo(Integer value) {
            addCriterion("cpid >=", value, "cpid");
            return (Criteria) this;
        }

        public Criteria andCpidLessThan(Integer value) {
            addCriterion("cpid <", value, "cpid");
            return (Criteria) this;
        }

        public Criteria andCpidLessThanOrEqualTo(Integer value) {
            addCriterion("cpid <=", value, "cpid");
            return (Criteria) this;
        }

        public Criteria andCpidIn(List<Integer> values) {
            addCriterion("cpid in", values, "cpid");
            return (Criteria) this;
        }

        public Criteria andCpidNotIn(List<Integer> values) {
            addCriterion("cpid not in", values, "cpid");
            return (Criteria) this;
        }

        public Criteria andCpidBetween(Integer value1, Integer value2) {
            addCriterion("cpid between", value1, value2, "cpid");
            return (Criteria) this;
        }

        public Criteria andCpidNotBetween(Integer value1, Integer value2) {
            addCriterion("cpid not between", value1, value2, "cpid");
            return (Criteria) this;
        }

        public Criteria andVidIsNull() {
            addCriterion("vid is null");
            return (Criteria) this;
        }

        public Criteria andVidIsNotNull() {
            addCriterion("vid is not null");
            return (Criteria) this;
        }

        public Criteria andVidEqualTo(Integer value) {
            addCriterion("vid =", value, "vid");
            return (Criteria) this;
        }

        public Criteria andVidNotEqualTo(Integer value) {
            addCriterion("vid <>", value, "vid");
            return (Criteria) this;
        }

        public Criteria andVidGreaterThan(Integer value) {
            addCriterion("vid >", value, "vid");
            return (Criteria) this;
        }

        public Criteria andVidGreaterThanOrEqualTo(Integer value) {
            addCriterion("vid >=", value, "vid");
            return (Criteria) this;
        }

        public Criteria andVidLessThan(Integer value) {
            addCriterion("vid <", value, "vid");
            return (Criteria) this;
        }

        public Criteria andVidLessThanOrEqualTo(Integer value) {
            addCriterion("vid <=", value, "vid");
            return (Criteria) this;
        }

        public Criteria andVidIn(List<Integer> values) {
            addCriterion("vid in", values, "vid");
            return (Criteria) this;
        }

        public Criteria andVidNotIn(List<Integer> values) {
            addCriterion("vid not in", values, "vid");
            return (Criteria) this;
        }

        public Criteria andVidBetween(Integer value1, Integer value2) {
            addCriterion("vid between", value1, value2, "vid");
            return (Criteria) this;
        }

        public Criteria andVidNotBetween(Integer value1, Integer value2) {
            addCriterion("vid not between", value1, value2, "vid");
            return (Criteria) this;
        }

        public Criteria andPrivatetimeIsNull() {
            addCriterion("privatetime is null");
            return (Criteria) this;
        }

        public Criteria andPrivatetimeIsNotNull() {
            addCriterion("privatetime is not null");
            return (Criteria) this;
        }

        public Criteria andPrivatetimeEqualTo(String value) {
            addCriterion("privatetime =", value, "privatetime");
            return (Criteria) this;
        }

        public Criteria andPrivatetimeNotEqualTo(String value) {
            addCriterion("privatetime <>", value, "privatetime");
            return (Criteria) this;
        }

        public Criteria andPrivatetimeGreaterThan(String value) {
            addCriterion("privatetime >", value, "privatetime");
            return (Criteria) this;
        }

        public Criteria andPrivatetimeGreaterThanOrEqualTo(String value) {
            addCriterion("privatetime >=", value, "privatetime");
            return (Criteria) this;
        }

        public Criteria andPrivatetimeLessThan(String value) {
            addCriterion("privatetime <", value, "privatetime");
            return (Criteria) this;
        }

        public Criteria andPrivatetimeLessThanOrEqualTo(String value) {
            addCriterion("privatetime <=", value, "privatetime");
            return (Criteria) this;
        }

        public Criteria andPrivatetimeLike(String value) {
            addCriterion("privatetime like", value, "privatetime");
            return (Criteria) this;
        }

        public Criteria andPrivatetimeNotLike(String value) {
            addCriterion("privatetime not like", value, "privatetime");
            return (Criteria) this;
        }

        public Criteria andPrivatetimeIn(List<String> values) {
            addCriterion("privatetime in", values, "privatetime");
            return (Criteria) this;
        }

        public Criteria andPrivatetimeNotIn(List<String> values) {
            addCriterion("privatetime not in", values, "privatetime");
            return (Criteria) this;
        }

        public Criteria andPrivatetimeBetween(String value1, String value2) {
            addCriterion("privatetime between", value1, value2, "privatetime");
            return (Criteria) this;
        }

        public Criteria andPrivatetimeNotBetween(String value1, String value2) {
            addCriterion("privatetime not between", value1, value2, "privatetime");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}